<?php
/**
 * Html code of login page.
 * 
 * @package templates
 */

	$formActionString = "/index.php?";
	$formActionString .= Constants::REQ_ACTION."=".Constants::REQ_ACTION_REDIRECT;
	$formActionString .= "&amp;";
	$formActionString .= Constants::REQ_TYPE."=".Constants::REQ_TYPE_LOGIN;
	
	$cm = CodeManager::getCodeManager();
	
	HtmlHelper::setValuesToInit($_POST);
?>
<form id="login" action="<?php echo $formActionString; ?>" method="post">
	<table>
		<tr>
			<td class="left">
				<?php echo $cm->get("30001"); ?>:
			</td>
			<td class="right">
				<input <?php echo HtmlHelper::inputValueWithAttr("login"); ?>/>
			</td>
		</tr>
		<tr>
			<td class="left">
				<?php echo $cm->get("30002"); ?>:
			</td>
			<td class="right">
				<input name="password" type="password" />
			</td>
		</tr>
		<tr>
			<td  colspan="2" class="submit">
<?php 
	$info = SiteContext::getSiteContext();
	$random = Common::createFormHash();
	$info->setFormHash($random);
?>
					<input type="text" value="<?php echo $random; ?>" class="invisible" name="formHash" />
				<input class="submit middle" type="submit" value="<?php echo $cm->get("20005"); ?>" />
			</td>
		</tr>
	</table>
	<!-- <div>
		<ul>
			<li>
				<a href=""><?php echo $cm->get("30003"); ?></a> 
			</li>
		</ul>
	</div> -->
</form>
